package com.txr.news.customexception;

import com.txr.news.pojo.ExType;
import lombok.Data;

/**
 * 业务级异常
 */
@Data
public class BusinessException extends RuntimeException {
    private ExType type;

    public BusinessException(String message, ExType type) {
        super(message);
        this.type = type;
    }

    public BusinessException(String message, ExType type, Throwable t) {
        super(message, t);
        this.type = type;
    }
}
